import ipcam_client

url_requestbin = "https://requestbin.io/1be9xhd1"
url_flask_url = "http://127.0.0.1:5000/receive-frame"
iter_frame = ipcam_client.generateSingleFrame(5)
for frame in iter_frame:

    print("got a frame")
    resp = ipcam_client.send_frame(url_flask_url, frame)
    print("resp ", resp)
